package com.example.demo.service;

import com.example.demo.pojo.Announcement;
import com.example.demo.pojo.PageBean;

import java.util.List;

public interface AnnouncementService {
    void add(Announcement announcement);

    List<Announcement> findAll();

    PageBean<Announcement> list(int pageNum, int pageSize, Integer categoryId);
}
